package com.wlc.mapper;

import com.wlc.pojo.AttendanceStats;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface AttendanceStatsMapper {

    // 部门考勤统计
    List<AttendanceStats> selectDeptAttendanceStats(@Param("startDate") String startDate,
                                                    @Param("endDate") String endDate);

    // 个人考勤明细
    List<AttendanceStats> selectPersonalAttendanceDetail(@Param("employeeId") Long employeeId,
                                                         @Param("startDate") String startDate,
                                                         @Param("endDate") String endDate);

    // 每日考勤统计
    List<AttendanceStats> selectDailyAttendanceStats(@Param("startDate") String startDate,
                                                     @Param("endDate") String endDate);

    // 月度考勤汇总
    List<AttendanceStats> selectMonthlyAttendanceSummary(@Param("year") String year);
}